using System;
using QAssetBundle;
using UnityEngine;
using QFramework;

namespace ProjectSurvivor
{
	public partial class Exp : PowerUp
	{
		
		private void OnTriggerEnter2D(Collider2D other)
		{
			if (other.GetComponent<CollectibleArea>() != null)
			{
				FlyingToPlayer = true;
			}
		}
		
		

		public override void Execute()
		{
			AudioKit.PlaySound(Sfx.EXP);
			Global.Exp.Value++;
			this.DestroyGameObjGracefully();
		}

		protected override Collider2D collider2d => SelfCircleCollider2D;
	}
}
